package com.dbh.company.chaos;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * @author dongbanghui
 * @create 2023/9/6
 */
public class StackMemoryFull {

    public Object run(Map<String, Object> params) {
        Logger logger = LoggerFactory.getLogger(StackMemoryFull.class);
        logger.info("注入stackMemoryFull攻击开始...");
        memoryFull();
        logger.info("注入stackMemoryFull攻击结束...");
        return null;
    }

    public void memoryFull() {
        memoryFull();
    }
}
